.login {
	width: 100%;
	min-height: 100%;
	background-image: url('../../assets/bg.jpg');
	background-size: 100% 100%;
	overflow: hidden;
	background-repeat: no-repeat;
	position: relative;
}

.login-content {
	width: 500px;
	height: 400px;
	background: #fff;
	margin: 200px auto;
	padding: 45px 40px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.login-content div {
	width: 100%;
}

.haed {
	display: flex;
	margin-bottom: 50px;
	align-items: center;
	justify-content: center;
	border-bottom: 4px solid #fff;
	padding-bottom: 5px;
	width: 80% !important;
	animation: haed 2s infinite;
	position: relative;
}

@keyframes haed {
	30% {
		opacity: 0.3;
	}
}


.logoImg {
	width: 45px;
	margin-top: -5px;
}

h2 {
	font-size: 30px;
	text-align: center;
	font-weight: bold;
	color: #fff;
	margin: 0;
	margin-left: 10px;
}

.login-form .login-form-button {
	margin-top: 20px;
	width: 100%;
	height: 40px
}

.author {
	color: #fff;
	text-align: center;
	padding-top: 60px;
	animation: author 2s infinite;
	position: absolute;
	left: 50%;
	bottom: 0;
	margin-left: -260px;
}

@keyframes author {
	50% {
		opacity: 0.3;
	}
}

.author a {
	color: var(--main-color);
	;
}

.author p {
	font-size: 12px;
}

/* 跑马灯特效 */
.login-content,
.login-content::before,
.login-content::after {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 5px;
}

.login-content::before,
.login-content::after {
	content: "";
	margin: -1.6%;
	box-shadow: inset 0 0 0 2px;
	animation: clipm 8s linear infinite;
	color: var(--main-color)
}

.login-content::before {
	animation-delay: -4s;
}

/* .login-content:hover::after,
.login-content:hover::before {
  background-color: rgba(255, 0, 0, 0.3);
} */
@keyframes clipm {
	0% {
		clip: rect(0px, 520px, 2px, 0px);
	}

	25% {
		clip: rect(0px, 2px, 520px, 0px);
	}

	50% {
		clip: rect(400px, 520px, 520px, 0px);
	}

	75% {
		clip: rect(0px, 520px, 420px, 400px);
	}

	100% {
		clip: rect(0px, 520px, 2px, 0px);
	}
}

.ant-btn-primary {
	z-index: 1;
	position: relative;
	overflow: hidden;
}

/* 登录按钮 */
.ant-btn-primary:hover {
	cursor: pointer;
}

.ant-btn-primary::after {
	content: "";
	z-index: -1;
	background-color: hsla(0, 0%, 100%, 0.2);
	position: absolute;
	top: -50%;
	bottom: -50%;
	width: 1.25em;
	transform: translate3d(-1646%, 0, 0) rotate(35deg);
}

.ant-btn-primary:hover::after {
	transition: transform 0.45s ease-in-out;
	transform: translate3d(1646%, 0, 0) rotate(35deg);
}

/* 标题动画 */
.haed::before {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 4px;
	background-color: var(--main-color);
	transform-origin: bottom right;
	transform: scaleX(0);
	transition: transform 0.5s ease;
}

.login-content:hover .haed::before {
	transform-origin: bottom left;
	transform: scaleX(1);
}
